<%@ page language="java" contentType="text/html; charset=utf-8"    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>風馳電訊網站管理系統-管理员登陆</title>
<link rel="stylesheet" type="text/css" href="common.css">
<script src="../js/jquery-1.4.2.js"></script>
<script language="javascript" src="js/Admin.js"></script>
<SCRIPT     LANGUAGE="JavaScript">   
function closeErrors(){   
	return     true;   
}   
window.onerror=closeErrors;   
function changeImg(){  
    var imgSrc = $("#imgObj");  
    var src = imgSrc.attr("src");
    var urlStr =  chgurl(src);
   imgSrc.attr("src",urlStr);
}     
function chgurl(url){  
    var timestamp = (new Date()).valueOf();  
    var index1 = url.indexOf("verifyCodeServlet");
  	url = url.substring(0,index1+"verifyCodeServlet".length);
    url = url + "?timestamp=" + timestamp;  
    return url;  
}  
function isRightCode(){  
    var code = $("#veryCode").attr("value");  
    code = "c=" + code;  
    $.ajax({  
        type:"POST",  
        url:"<%=contextPath%>/resultServlet",  
        data:code,  
        success:callback  
    });  
}  
 
function callback(data){  
    $("#info").action(data);  
}  
</SCRIPT>
<style type="text/css">
<!--
a{ color:#008EE3}
a:link  { text-decoration: none;color:#008EE3}
A:visited {text-decoration: none;color:#666666}
A:active {text-decoration: underline}
A:hover {text-decoration: underline;color: #0066CC}
A.b:link {
	text-decoration: none;
	font-size:12px;
	font-family: "Helvetica,微软雅黑,宋体";
	color: #FFFFFF;
}
A.b:visited {
	text-decoration: none;
	font-size:12px;
	font-family: "Helvetica,微软雅黑,宋体";
	color: #FFFFFF;
}
A.b:active {
	text-decoration: underline;
	color: #FF0000;

}
A.b:hover {text-decoration: underline; color: #ffffff}

.table1 {
	border: 1px solid #CCCCCC;
}
.font {
	font-size: 12px;
	text-decoration: none;
	color: #999999;
	line-height: 20px;
	

}
.input {
	font-size: 12px;
	color: #999999;
	text-decoration: none;
	border: 0px none #999999;


}

td {
	font-size: 12px;
	color: #007AB5;
}
form {
	margin: 1px;
	padding: 1px;
}
input {
	border: 0px;
	height: 26px;
	color: #007AB5;

	.unnamed1 {
	border: thin none #FFFFFF;
}
.unnamed1 {
	border: thin none #FFFFFF;
}
select {
	border: 1px solid #cccccc;
	height: 18px;
	color: #666666;

	.unnamed1 {
	border: thin none #FFFFFF;
}
body {
	background-repeat: no-repeat;
	background-color: #9CDCF9;
	background-position: 0px 0px;

}
.tablelinenotop {
	border-top: 0px solid #CCCCCC;
	border-right: 1px solid #CCCCCC;
	border-bottom: 0px solid #CCCCCC;
	border-left: 1px solid #CCCCCC;
}
.tablelinenotopdown {

	border-top: 1px solid #eeeeee;
	border-right: 1px solid #eeeeee;
	border-bottom: 1px solid #eeeeee;
	border-left: 1px solid #eeeeee;
}
.style6 {FONT-SIZE: 9pt; color: #7b8ac3; }

-->
</style>
</head>
<body onload=javascript:document.NETSJ_Login.UserName.focus()>
<table width="681" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:120px">
  <tr>

    <td width="353" height="259" align="center" valign="bottom" background="images/login_1.gif"><table width="90%" border="0" cellspacing="3" cellpadding="0">
      <tr>
        <td align="right" valign="bottom" style="color:#05B8E4"></td>
      </tr>
    </table></td>
    <td width="195" background="images/login_2.gif"><table width="195" height="106" border="0" align="center" cellpadding="2" cellspacing="0">
      <form action="<%=contextPath%>/checkLogin" method="post" name="AdminLogin">

            <tr>
              <td height="50" colspan="2" align="left">&nbsp;</td>
            </tr>
            <tr>
              <td width="37" height="30" align="left">用 户</td>
              <td width="145"><input name="user" type="TEXT" style="background:url(images/login_6.gif) repeat-x; border:solid 1px #27B3FE; height:20px; background-color:#FFFFFF" id="user"size="14"/></td>
            </tr>
            <tr>

              <td height="30" align="left">密 码</td>
              <td><input name="password"  TYPE="PASSWORD" style="background:url(images/login_6.gif) repeat-x; border:solid 1px #27B3FE; height:20px; background-color:#FFFFFF" id="password" size="16"/></td>
            </tr>
            <tr>
              <td height="30">验 证</td>
			  <td>
			  <input  name="veryCode"  type="text" id="veryCode" 
			  onblur="isRightCode()"
			  style="background:url(images/login_6.gif) repeat-x; border:solid 1px #27B3FE; height:20px; background-color:#FFFFFF"  size="6" maxlength="6"/>
		      <img id="imgObj" name="imgObj" src="<%=contextPath %>/verifyCodeServlet" alt="验证码" title="看不清楚? 换一张！" style="cursor:hand;"/> 
		      </td>
            </tr>
            <tr>
            	<td colspan="2"><a href="#" onclick="changeImg()">换一张</a></td>
            </tr>
            <tr>
              <td height="40" colspan="2" align="center"><div id="info"></div><img src="images/tip.gif" width="16" height="16"> 请勿非法登陆！</td>
          <tr>
              <td colspan="2" align="center"><input type="submit" name="submitLogin2" style="background:url(images/login_5.gif) no-repeat" value=" 登  陆 "> 
			  <input type="reset" name="Submit" style="background:url(images/login_5.gif) no-repeat" value=" 取  消 "></td>
            <tr>
              <td height="5" colspan="2"></td>

        </form>
    </table></td>
    <td width="133" background="images/login_3.gif">&nbsp;</td>
  </tr>
  <tr>
    <td height="161" colspan="3" background="images/login_4.gif"></td>
  </tr>
</table>
</body>
</html>